package com.qianniu.napi.admin.mapper;

import com.qianniu.napi.admin.entity.CouponTpl;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
  * 优惠券模板 Mapper 接口
 * </p>
 *
 * @author chenxuebin
 * @since 2018-07-07
 */
public interface CouponTplMapper extends BaseMapper<CouponTpl> {

    public List<CouponTpl> getMechantCouponstpl(@Param("mpid")long mpid);

    public List<CouponTpl> getMechantCoupons(@Param("mid")long mid,@Param("uid")long uid);

    public List<CouponTpl> getHomeCoupons(@Param("mid")Long mid,@Param("uid")Long uid);

    public List<CouponTpl> getSuitCoupons(@Param("mid")long mid,@Param("uid")long uid,
                                          @Param("gid")String gid,@Param("cid")String cid,@Param("price")float price);

}